package io.finer.erp.jeecg.sale.service;

import io.finer.erp.jeecg.approve.entity.ApproveRecord;
import io.finer.erp.jeecg.sale.entity.SaleOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import io.finer.erp.jeecg.sale.entity.SaleOrderLine;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 销售订单 服务类
 * </p>
 *
 * @author yaoyifan
 * @since 2021-05-11
 */
public interface SaleOrderService extends IService<SaleOrder> {
    public void saveMain(SaleOrder SaleOrder, List<SaleOrderLine> SaleOrderLineList) ;
    public void updateMain(SaleOrder SaleOrder, List<SaleOrderLine> SaleOrderLineList);
    public void delMain(String id);
    public void delBatchMain(Collection<? extends Serializable> idList);
    public void submit(String model, String id);
    public String approve(String model, String id, String note);
    public void reject(String model, String id, String note);
    public boolean canApproveorReject(String model, String id);
    public List<ApproveRecord> queryApproveRecordList(String model, String id);
    public void withDraw(String model, String id);
    public void invalid(String id, String note);
}
